
class Test{

 static void main(String[] args){
   def st=new Student()
   st.age=0
   st.mark=9
   st.test()
   st.total()
   st.x();
   st.y()
   println st.mark
 }
}

interface Total{
 void total()
}
trait X{

  void x(){
   println "x"
  }
}
trait Y extends X{
  void x(){
   println "yx"
  }
  void y(){
  println "y"
  }
  
}


trait Marks implements Total{
 int mark;
  void test(){
    println "test"
  }
  void total(){
   println "total"
  }
}

class Student implements Marks,Y{
  int age;
}
